package com.yehaikeji.workflow.mapper;

import java.util.List;
import java.util.Map;

import com.yehaikeji.workflow.bean.incident;

public interface incidentMapper {
    int deleteByPrimaryKey(String incidentid);

    int insert(incident record);

    int insertSelective(incident record);

    incident selectByPrimaryKey(String incidentid);

    int updateByPrimaryKeySelective(incident record);

    int updateByPrimaryKey(incident record);
    
    /**
     * 按照updatedate降序,能获取到已经签名的
     */
    List<incident> selectBythingidlist(String thingid);
    
    List<incident> selectBythingidlistnull(String thingid);
    
    int deleteuselessincident(Map<String,Object> map);
    
    List<incident> selectBythingidhistory(String thingid);
}